home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / utils2 / pwrbat22.zip / PBPLUS.DOC < prev    next >
Text File  |  1994-05-18  |  5KB  |  89 lines

  1.  
  2.                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.                                PB Plus+ Compiler
  4.                          Computing Systems Design, Inc.
  5.                                4437 Ormond Trace
  6.                                Marietta, GA 30066
  7.                             CompuServe ID 72701,155
  8.                            24 Hour FAX (404) 926-9565
  9.  
  10.                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11.  
  12.     PB Plus+ is an extension of PowerBatch, adding several powerful commands
  13.     for the advanced developer. PB Plus+ gives the developer the capability to
  14.     create sophisticated programs with relative ease. Below is a list of
  15.     commands included in PB Plus+ in addition to all the commands in
  16.     PowerBatch.
  17.  
  18.     ASCII File I/O
  19.     ~~~~~~~~~~~~~~
  20.     Four file commands READFILE, WRITEFILE, APPENDFILE, and CLOSEFILE provide
  21.     the capability to manipulate up 8 files at any one time. Files are
  22.     automatically opened and closed at the appropriate time. (You can issue a
  23.     READFILE command immediately following a WRITEFILE command and the file
  24.     you were writing to will automatically be closed as output, re-opened as
  25.     input and positioned at the beginning of the file.) With the APPENDFILE
  26.     command, you can add to an existing file. All files are automatically
  27.     closed for you at the successful completion of your program.
  28.  
  29.     Dynamic Arrays
  30.     ~~~~~~~~~~~~~~
  31.     Array handling was never easier. Define an array by giving the APPROXIMATE
  32.     length of each entry in the array and the APPROXIMATE number of elements in
  33.     the array. PB Plus+ will allocate enough memory in the heap to contains the
  34.     number of bytes needed to contain these entries. Each array element written
  35.     consumes only as much space as the length of the element! If you define an
  36.     array containing 25 entries each 40 characters long, 1000 bytes of memory
  37.     would be allocated for your array. Since each entry takes only as much
  38.     space as is necessary, you could write 100 entries that were only 10
  39.     characters each!! No matter that you told me you would have only 25
  40.     entries, it is the total amount of memory used that counts.
  41.  
  42.     It get even better. Suppose you underestimate the size needed for the
  43.     array. No worry. PB Plus+ will simply allocate additional memory for your
  44.     array and you continue writing as long as heap memory is available! You
  45.     could easily write several thousand entries in your array without crashing
  46.     the program.
  47.  
  48.     Subroutines
  49.     ~~~~~~~~~~~
  50.     True subroutine execution up to 32 levels deep. (You can PERFORM within a
  51.     PERFORM within a PERFORM... up to 32 levels). A subroutine begins with a
  52.     label and ends with an EXIT command. When the exit command is reached, the
  53.     program returns to the statement immediately following your PERFORM
  54.     statement.
  55.  
  56.     Screen Saves
  57.     ~~~~~~~~~~~~
  58.     Just the thing that is needed for true "menu popping". Execute the SAVEBOX
  59.     command identifying the upper row and column and the lower row and column
  60.     boundaries and PB Plus+will allocate memory on the heap to save all the
  61.     data, color attributes, and cursor location within the defined box. Draw
  62.     your menu on the screen, get the input from the user, and issue the RESTBOX
  63.     command. PB Plus+ will find your saved data and restore the screen in a
  64.     flash. Up to 16 saved areas may be active at any one time. Multiple
  65.     executions of the RESTBOX command will "pop" the screen back for you in
  66.     sequence.
  67.  
  68.     Program Swapping
  69.     ~~~~~~~~~~~~~~~~
  70.     What a powerful command! The swap command is so simple... either SWAP ON or
  71.     SWAP OFF. If SWAP is ON, any external program or DOS command you execute
  72.     will cause your PB Plus+ program to be "swapped" out of active memory to
  73.     give the external process the maximum amount of memory available. When the
  74.     external command is finished, your PB Plus+ program takes up right where it
  75.     left off!
  76.  
  77.     Here's what happens without you even having to worry. PB Plus+ searches
  78.     your system for either EMS, XMS, or a hard drive (in that order). Your PB
  79.     Plus+ program is swapped to one of these available resources, leaving
  80.     behind less then 4k to handle the swapping back in of your program after
  81.     the external command is finished. Swap to one of the memory resources (EMS,
  82.     or XMS) and this occurs in the blink of any eye. Even swapping to a hard
  83.     drive takes approx 2 seconds.
  84.  
  85.     PB Plus+ is a solid bug free system that is already in use by several
  86.     thousand users. It comes with printed documentation on the diskette size of
  87.     your choice. If you haven't run PLUSDEMO.EXE located on your PowerBat disk,
  88.     run this demonstration to see the power and flexibility of PB Plus+.
  89.